From b584956cdec1ce3c8f87899eb54cc7d77efc782a Mon Sep 17 00:00:00 2001 From: "mjw@wray-m-3.hpl.hp.com" Date: Tue, 22 Jun 2004 20:10:34 +0000 Subject: [PATCH] bitkeeper revision 1.999.1.2 (40d8923aguFPdqjwxtcBjkCDze4bkQ) Fix shutdown info display. --- tools/xenmgr/lib/XendDomainInfo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/xenmgr/lib/XendDomainInfo.py b/tools/xenmgr/lib/XendDomainInfo.py index 182b523d11..b263942c5b 100644 --- a/tools/xenmgr/lib/XendDomainInfo.py +++ b/tools/xenmgr/lib/XendDomainInfo.py @@ -126,7 +126,7 @@ class XendDomainInfo: sxpr.append(['state', state]) if self.info['shutdown']: reasons = ["poweroff", "reboot", "suspend"] - reason = reasons[info['shutdown_reason']] + reason = reasons[self.info['shutdown_reason']] sxpr.append(['shutdown_reason', reason]) sxpr.append(['cpu', self.info['cpu']]) sxpr.append(['cpu_time', self.info['cpu_time']/1e9]) -- 2.30.2